/* Controller */

#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <CamelBones/CamelBones.h>
#import <CamelBones/AppMain.h>


@interface Controller : NSObject
{
    IBOutlet id errorMsg;
    IBOutlet id errorWindow;
    IBOutlet id mainWindow;
    IBOutlet id regexField;
    IBOutlet id resultsField;
    IBOutlet id textField;

	CBPerl *perl;
	id perlObj;
}

- (IBAction)clear:(id)sender;
- (IBAction)okError:(id)sender;
- (IBAction)runIt:(id)sender;
-(void) showError;

@end

@interface NSObject (MyPerlClassMethods)
- (id) p_parseRegex:(id)pattern onText:(id)text;
- (id) p_testRegex:(id)pattern;
@end